import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);

// 引入要跳转的组件
import Home from '../pages/home';
import FenLei from '../pages/fenlei';
import GouWuChe from '../pages/gouwuche';
import My from '../pages/my';

// 配置路由
const routes=[
    {path:'/',redirect:'/home'},
    {path:'/home',component:Home},
    {path:'/fenlei',component:FenLei},
    {path:'/gouwu',component:GouWuChe},
    {path:'/my',component:My},
    
    
]

// 实力化
const router = new VueRouter({
    routes,
});
// 导出
export default router;